export default {
  data() {
    return {
      pageStatus: "loading"
    };
  },
  methods: {
    showPageContent() {
      this.pageStatus = "content";
    },
    showPageError(error) {
      this.pageStatus = "error";
      if (error && this.$refs.container) {
        this.$refs.container.showError(error);
      }
    },
    showPageEmpty() {
      this.pageStatus = "empty";
    },
    showPageLoading() {
      this.pageStatus = "loading";
    }
  }
};
